package com.systop.student.service.Impl;

import com.systop.common.pojo.student_elective;
import com.systop.student.mapper.student_electiveMapper;
import com.systop.student.service.student_electiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class student_electiveServiceImpl implements student_electiveService {
    @Autowired
    private student_electiveMapper studentElectiveMapper;

    @Override
    public int studentAdd(student_elective s) {
        return studentElectiveMapper.studentAdd(s);
    }

    @Override
    public int delStudent(int student_elective_id) {
        return studentElectiveMapper.delStudent(student_elective_id);
    }

    @Override
    public List<student_elective> studentSupList(String sno) {
        return studentElectiveMapper.studentSupList(sno);
    }

    @Override
    public List<student_elective> studentSelective_course_id(int elective_course_id) {
        return studentElectiveMapper.studentSelective_course_id(elective_course_id);
    }
}
